package com.i360day.invoker.context;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.context.ApplicationContext;

/**
 * @author liju.z
 */
public interface HttpInvokerContext extends DisposableBean {

    ApplicationContext getParent();

    <T> T getBean(String contextName, String beanName, Class<T> type);

    <T> T getBean(String beanName, Class<T> type);

    <T> T getBean(Class<T> type);

    <T> T getBean(Class<T> type, boolean ignoreError);
}
